package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.bo.SaveAddressBo;
import com.cskaoyan.catmall.model.pojo.MarketAddress;
import com.cskaoyan.catmall.model.vo.AddressVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxAddressDao {
    List<AddressVo> getList(@Param("userId") Integer userId);

    AddressVo getDetail(@Param("addressId") Integer addressId);

    Integer saveAddress(@Param("pojo") MarketAddress pojo);

    void deleteAddress(@Param("id") Integer id);

    Integer insertAddress(@Param("pojo") MarketAddress pojo);

    void updateIsDefaultById(@Param("id") Integer id);
}
